<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class School extends Model
{
    use SoftDeletes;
    protected $table = 'school';
    public $fillable = ['school_name'];

    public function school_class_and_grade()
    {
        return $this->hasMany(SchoolClassAndGrade::class,'school_id','id');
    }
}
